addrwatch: add patch header from upstreamed commit
authorJosef Schlehofer <[email protected]>
Sun, 15 Jun 2025 06:55:08 +0000 (08:55 +0200)
committerJosef Schlehofer <[email protected]>
Mon, 16 Jun 2025 08:48:00 +0000 (10:48 +0200)
This patch was upstreamed [1], so it can be removed in the future.
For now, I added patch header, so it can be applied with `git am`
and also, we know who commited such changes.

[1] https://github.com/fln/addrwatch/commit/951b6940f4cf14a4a1712e9b874e3a9c5e32befc

Signed-off-by: Josef Schlehofer <[email protected]>
net/addrwatch/patches/002-fix-uclibc-sysconf.patch

index 96d3ee2d7e065973f3f6db1924a26547f031e8b8..6d7b712c871c278b88fb025400737f6b583df804 100644 (file)
@@ -1,3 +1,14 @@
+From 951b6940f4cf14a4a1712e9b874e3a9c5e32befc Mon Sep 17 00:00:00 2001
+From: Rosen Penev <[email protected]>
+Date: Sun, 8 Mar 2020 03:44:53 -0700
+Subject: [PATCH] Use compile-time macro HOST_NAME_MAX instead of run-time via
+ sysconf
+
+This seems to be more portable for non-standard libcs.
+---
+ src/addrwatch.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
 --- a/src/addrwatch.c
 +++ b/src/addrwatch.c
 @@ -501,7 +501,7 @@ int main(int argc, char *argv[])